package backend.project.gym_management.service.impl;

import backend.project.gym_management.mapper.HealthDataMapper;
import backend.project.gym_management.pojo.entity.HealthData;
import backend.project.gym_management.service.HealthDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HealthDataServiceImpl implements HealthDataService {

    @Autowired
    private HealthDataMapper healthDataMapper;

    @Override
    public HealthData getHealthDataByUid(Long uid) {
        return healthDataMapper.findByUid(uid);
    }
}
